home *** CD-ROM | disk | FTP | other *** search
- {{{ mode comrepmv-mode
- (mode comrepmv-mode
- @lib vi-fun/commandmodek
- )
- }}}
- {{{ mode insert-mode
- (mode insert-mode
- {{{ escaped stuff for command mode
- ; No there is no need to use enter command mode at this point
- @use(USE_INSERT)
- @lib vi-fun/commandmodek
- @use not(USE_INSERT)
- }}}
- (keybind quote-character (C-V))
- (keybind delete-previous-character (C-H))
- (keybind delete-previous-character (C-?))
- (keybind newline-and-indent (C-M))
- (keybind newline-and-indent (C-J))
- (keybind brace-close ("}))
- (keybind close-bracket (")))
- (keybind square-bracket-close ("]))
- ;(keybind describe-bindings (M-"?))
- ;the above line should be modified if this is needed for future tests!
- (keybind suspend-origami (C-Z))
- (keybind space (" ))
- ;start stop and execute macro
- (keybind tabin (C-T))
- (keybind tabout (C-D))
- (keybind enter-command-mode ($esc $esc))
- (keybind vi-get-Xselection (C-X))
- )
- }}}
- {{{ mode parameter-mode
- (mode parameter-mode
- (keybind delete-previous-character ( C-H ))
- (keybind exit-parameter-mode (C-M))
- (keybind suspend-origami (C-Z))
- ;(keybind backward-character ($left))
- ;(keybind forward-character ($right))
- (keybind backward-character (C-P))
- (keybind forward-character (C-N))
- (keybind quote-character (C-V))
- )
- }}}
- {{{ mode ex-mode
- {{{ ex-mode macros
-
- (deffun vi-write-file
- ( parameter-mode
- set still-reading 1
- write-file
- set still-reading 0
- )
- )
- (deffun vi-read-file
- ( parameter-mode
- read-file
- )
- )
- (deffun vi-next-file
- ( next-file
- show-cursor 0
- )
- )
- (deffun vi-save-file
- ( save-file
- show-cursor 0
- enter-command-mode
- )
- )
- (deffun vi-previous-file
- ( previous-file
- show-cursor 0
- )
- )
- (deffun vi-edit-file
- ( ))
- }}}
- (mode ex-mode ; this part of the finite state machine needs to be correncted!
- (keybind newline-and-indent ($esc C-X)) ; This is for emergencies!
- (keybind vi-read-file ("r))
- (keybind vi-save-file ("W))
- (keybind vi-save-file ("w C-M))
- (keybind vi-write-file ("w " ))
- (keybind vi-edit-file ("e))
- (keybind exit-origami ("Q"!)) ; as this is quicker to type
- (keybind exit-origami ("q"!)) ; as this is correct!
- (keybind exit-ex-mode (C-M))
- (keybind suspend-origami (C-Z))
- (keybind describe-bindings ("H))
- )
- }}}
- {{{ mode direct-mode
- (mode direct-mode
- (keybind delete-previous-character ( C-H ))
- (keybind suspend-origami (C-Z))
- (keybind newline-and-indent (C-M))
- )
- }}}
- {{{ mode resize-mode
- (mode resize-mode
- {{{ resize commands consistent with modeori
- (keybind narrow-buffer ("h))
- (keybind shrink-buffer ("j))
- (keybind grow-buffer("k))
- (keybind widen-buffer("l))
- }}}
- {{{ change window in resize mode
- (keybind down-buffer ("J))
- (keybind up-buffer ("K))
- (keybind left-buffer ("H))
- (keybind right-buffer ("L))
- }}}
- (keybind full-size-buffer ("f))
- (keybind enter-command-mode (C-M))
- )
- }}}
-